/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.cput.ac.concepts.encap.encapfix.impl;

/**
 *
 * @author Ilyaas Khatib
 */
public class EncapFix {
    
    public static void main(String[] args) {
        Account acc = new Account();
        acc.setSalary(8000);
        acc.setTax(0.15);
        acc.setBalance(acc.getSalary()-(acc.getSalary()*acc.getTax()));
        System.out.println("Account balance: R"+acc.getBalance());
    }
}
